package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 刘国航
 * @since 2024-07-13
 */
@Data
public class DaoUpdateStarRatingRequest implements Serializable {

    @ApiModelProperty("品牌id")
    @NotNull(message = "品牌id不能为空")
    private Long id;

    @ApiModelProperty("星级评分")
    @NotNull(message = "星级评分不能为空")
    @Max(value = 100, message = "星级评分不能大于100")
    @Min(value = 0, message = "星级评分不能小于0")
    private Long starScore;

}
